package com.qianbei.common.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量集
 *
 * @author jiaowenzheng
 *
 * Created by user on 16/7/8.
 */
public class ConstantValue {
    //intent 传递数据类型key
    public static final String TYPE_KEY= "type";
    public static final String TAG_KEY = "tag";
    public static final String ID_KEY = "id";
    public static final String IS_BIND_KEY = "bind_key";
    public static final String DATA_KEY = "data";
    public static final String TITLE_KEY = "title";
    public static final String IS_FORMAT_KEY = "is_format";
    public static final String CONTENT_KEY = "content";

    public static final String QUESTION_ID_KEY = "question_id";
    public static final String IS_PREVIEW = "is_preview";

    public static final String SHOW_PHONE_KEY = "show_phone";

    public static final String IS_SCROLL_KEY = "is_scroll";

    public static final String NAME_KEY = "name";
    public static final String URL_KEY = "url";
    public static final String POST_KEY = "post";

    public static final String SELECT_TAB_KEY = "select_tab";
    public static final String WE_CHAT_INFO_KEY = "we_chat_info";

    public static final String SHOW_TITLE_KEY = "show_title";
    public static final String PRICE_KEY = "price";

    public static final String ANSWER_ID = "answer_id";
    public static final String PARENT_ID = "parent_id";

    public static final String COUNTRY_NAME_KEY = "country_name";
    public static final String COUNTRY_CODE_KEY = "country_code";

    public static final String THEME_ID = "theme_id";
    public static final String COMMENT_TYPE = "comment_type";
    public static final String ANSWER_COMMENT_TYPE = "answer_comment_type";
    public static final String THEME_COMMENT_TYPE = "theme_comment_type";

    public static final String IS_EDIT_KEY = "edit";


    //交易类型
    public static final String TRANSACTION_TRADING_TYPE = "trading"; //交易中
    public static final String TRANSACTION_TRADE_TYPE = "trade";     //可结算
    public static final String TRANSACTION_TRADED_TYPE = "traded";   //已结算

    //是否有目标
    public static final String TARGET = "target";

    public static Map<String, String> state = new HashMap<String, String>();

    static {
        state.put("new", "等待确认");
        state.put("passed", "待支付");
        state.put("denied", "已拒绝");
        state.put("paid", "进行中");
        state.put("executed", "待评价");
        state.put("finished", "已完成");
        state.put("seniority_untreated_cancelled", "逾期未处理");
        state.put("user_unpaid_cancelled", "逾期未支付");
        state.put("refunding", "退款审核中");
        state.put("refunded", "退款成功");
    }

    /********************-----------------------------**************/

    public static final String HOME_TYPE_KEY = "edit";
}
